//
//  CTDatabase.h
//  Astro
//
//  Created by hero on 12/5/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>
#define DBName @"AstroDB.sqlite"


@interface CTDatabase : NSObject {
	sqlite3 *database;
	sqlite3_stmt *detailStmt;
	
}

- (CTDatabase*) init;

// Set and get Device Token
- (NSString*) getToken:(NSInteger)cateId andSignId:(NSInteger)signId;

- (void) setToken:(NSString*)token WithTokenType:(NSInteger)tokenType; 

+ (void) copyDatabaseIfNeeded;
+ (NSString *) getDBPath;

//=====
- (NSString*) getIconCategory:(NSInteger)cateId;
- (NSString*) getIconSigns:(NSInteger)SignId;

@end
